package com.hogae.capital.enums;


import java.util.Arrays;

/**
 * 提现类型枚举类型，目前只有支付宝和银行卡
 */
public enum AccountTypeEnum {

    ALIPAY("0"),BANKCARD("1");

    String code;

    AccountTypeEnum(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public static void main(String[] args) {
        System.out.println(Arrays.stream(AccountTypeEnum.values()).anyMatch(a -> a.code.equals("1")));
    }
}
